package com.ruoyi.process.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 人工播种对象 work_artiseeding
 *
 * @author ruoyi
 * @date 2021-07-12
 */
public class WorkArtiseeding extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private Long workArtiseedingIds[];

    public Long[] getWorkArtiseedingIds() {
        return workArtiseedingIds;
    }

    public void setWorkArtiseedingIds(Long[] workArtiseedingIds) {
        this.workArtiseedingIds = workArtiseedingIds;
    }

    /** 人工播种编号 */
    private Long workArtiseedingId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    @Excel(name = "用户名称")
    private String userName;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderId;
    @Excel(name = "订单名称")
    private String orderName;

    /** 工作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "工作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workTime;

    /**
工作地点 */
    @Excel(name = "工作地点")
    private String workPlace;

    /** 工作量 */
    @Excel(name = "工作量")
    private Long workLoad;

    /** 工作量单位 */
    @Excel(name = "工作量单位")
    private String workUnit;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    /** 审批 */
    @Excel(name = "审批", readConverterExp = "0=未审批,1=审批通过,2=不通过")
    private Long approval;

    public void setWorkArtiseedingId(Long workArtiseedingId)
    {
        this.workArtiseedingId = workArtiseedingId;
    }

    public Long getWorkArtiseedingId()
    {
        return workArtiseedingId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setWorkTime(Date workTime)
    {
        this.workTime = workTime;
    }

    public Date getWorkTime()
    {
        return workTime;
    }
    public void setWorkPlace(String workPlace)
    {
        this.workPlace = workPlace;
    }

    public String getWorkPlace()
    {
        return workPlace;
    }
    public void setWorkLoad(Long workLoad)
    {
        this.workLoad = workLoad;
    }

    public Long getWorkLoad()
    {
        return workLoad;
    }
    public void setWorkUnit(String workUnit)
    {
        this.workUnit = workUnit;
    }

    public String getWorkUnit()
    {
        return workUnit;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setApproval(Long approval)
    {
        this.approval = approval;
    }

    public Long getApproval()
    {
        return approval;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workArtiseedingId", getWorkArtiseedingId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("workTime", getWorkTime())
            .append("workPlace", getWorkPlace())
            .append("workLoad", getWorkLoad())
            .append("workUnit", getWorkUnit())
            .append("note", getNote())
            .append("approval", getApproval())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
